package com.woniuxy.mesboot.service.impl;

import com.woniuxy.mesboot.entity.MesFactory;
import com.woniuxy.mesboot.mapper.MesFactoryMapper;
import com.woniuxy.mesboot.service.FactoryService;
import com.woniuxy.mesboot.vo.FactoryVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FactoryServiceImpl implements FactoryService {

    @Resource
    private MesFactoryMapper factoryMapper;

    @Override
    public List<FactoryVO> selectAllName(Long id) {
        return factoryMapper.selectAllName(id);
    }

    @Override
    public List<MesFactory> selectAll() {
        return factoryMapper.selectAll();
    }
    @Override
    public int deleteByPrimaryKey(Long id) {
        return factoryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MesFactory record) {
        return factoryMapper.insert(record);
    }

    @Override
    public int insertSelective(MesFactory record) {
        return factoryMapper.insertSelective(record);
    }

    @Override
    public MesFactory selectByPrimaryKey(Long id) {
        return factoryMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MesFactory record) {
        return factoryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MesFactory record) {
        return factoryMapper.updateByPrimaryKey(record);
    }
}
